<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="../vue.js"></script>
</head>
<body>
  <div id="app">
    <cpn v-for="index in 2" :name="'00'+index"></cpn>

    <cpn name="slot-1">
      <button>插槽按钮1</button>
    </cpn>

    <cpn name="放一堆东西的component">
      <p>一个东西</p>
      <h2>两个东西</h2>
      <input type="text">
    </cpn>
    
  </div>
  <template id="cpn">
    <div>
      <h1>component</h1>
      <p>{{name}}</p>
      <slot><p>default value</p></slot>
    </div>
  </template>
  <script src="./vue.js"></script>
</body>
</html>